package net.hg.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import net.hg.entity.User;

import java.util.List;

public interface UserService {
    /**
     * 添加用户
     *
     * @param user
     * @return
     */
    int addUser(User user);
    int updateUser(User user);

    /**
     * 条件查询所有用户
     * @param queryWrapper
     * @return
     */
    List<User> selectList(QueryWrapper<User> queryWrapper);

    /**
     * 登录
     * @param queryWrapper
     * @return
     */
    User login(QueryWrapper<User> queryWrapper);


}
